Optimal. Leaf size=241 \[ \frac{b n (g h-f i)^2 \text{PolyLog}\left (2,-\frac{g (d+e x)}{e f-d g}\right )}{g^3}+\frac{(g h-f i)^2 \log \left (\frac{e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^3}+\frac{(h+i x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g}+\frac{a i x (g h-f i)}{g^2}+\frac{b i (d+e x) (g h-f i) \log \left (c (d+e x)^n\right )}{e g^2}-\frac{b n (e h-d i)^2 \log (d+e x)}{2 e^2 g}-\frac{b i n x (e h-d i)}{2 e g}-\frac{b i n x (g h-f i)}{g^2}-\frac{b n (h+i x)^2}{4 g} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.222943, antiderivative size = 241, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 8, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.276, Rules used = {2418, 2389, 2295, 2394, 2393, 2391, 2395, 43} \[ \frac{b n (g h-f i)^2 \text{PolyLog}\left (2,-\frac{g (d+e x)}{e f-d g}\right )}{g^3}+\frac{(g h-f i)^2 \log \left (\frac{e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^3}+\frac{(h+i x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g}+\frac{a i x (g h-f i)}{g^2}+\frac{b i (d+e x) (g h-f i) \log \left (c (d+e x)^n\right )}{e g^2}-\frac{b n (e h-d i)^2 \log (d+e x)}{2 e^2 g}-\frac{b i n x (e h-d i)}{2 e g}-\frac{b i n x (g h-f i)}{g^2}-\frac{b n (h+i x)^2}{4 g} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2418
Rule 2389
Rule 2295
Rule 2394
Rule 2393
Rule 2391
Rule 2395
Rule 43
Rubi steps
\begin{align*} \int \frac{(h+218 x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{f+g x} \, dx &=\int \left (\frac{218 (-218 f+g h) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^2}+\frac{218 (h+218 x) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g}+\frac{(-218 f+g h)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^2 (f+g x)}\right ) \, dx\\ &=\frac{218 \int (h+218 x) \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx}{g}-\frac{(218 (218 f-g h)) \int \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx}{g^2}+\frac{(218 f-g h)^2 \int \frac{a+b \log \left (c (d+e x)^n\right )}{f+g x} \, dx}{g^2}\\ &=-\frac{218 a (218 f-g h) x}{g^2}+\frac{(h+218 x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g}+\frac{(218 f-g h)^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (f+g x)}{e f-d g}\right )}{g^3}-\frac{(218 b (218 f-g h)) \int \log \left (c (d+e x)^n\right ) \, dx}{g^2}-\frac{(b e n) \int \frac{(h+218 x)^2}{d+e x} \, dx}{2 g}-\frac{\left (b e (218 f-g h)^2 n\right ) \int \frac{\log \left (\frac{e (f+g x)}{e f-d g}\right )}{d+e x} \, dx}{g^3}\\ &=-\frac{218 a (218 f-g h) x}{g^2}+\frac{(h+218 x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g}+\frac{(218 f-g h)^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (f+g x)}{e f-d g}\right )}{g^3}-\frac{(218 b (218 f-g h)) \operatorname{Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{e g^2}-\frac{(b e n) \int \left (\frac{218 (-218 d+e h)}{e^2}+\frac{218 (h+218 x)}{e}+\frac{(-218 d+e h)^2}{e^2 (d+e x)}\right ) \, dx}{2 g}-\frac{\left (b (218 f-g h)^2 n\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{g^3}\\ &=-\frac{218 a (218 f-g h) x}{g^2}+\frac{109 b (218 d-e h) n x}{e g}+\frac{218 b (218 f-g h) n x}{g^2}-\frac{b n (h+218 x)^2}{4 g}-\frac{b (218 d-e h)^2 n \log (d+e x)}{2 e^2 g}-\frac{218 b (218 f-g h) (d+e x) \log \left (c (d+e x)^n\right )}{e g^2}+\frac{(h+218 x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g}+\frac{(218 f-g h)^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (f+g x)}{e f-d g}\right )}{g^3}+\frac{b (218 f-g h)^2 n \text{Li}_2\left (-\frac{g (d+e x)}{e f-d g}\right )}{g^3}\\ \end{align*}
Mathematica [A] time = 0.261613, size = 224, normalized size = 0.93 \[ \frac{4 b e^2 n (g h-f i)^2 \text{PolyLog}\left (2,\frac{g (d+e x)}{d g-e f}\right )+e \left (g i x (2 a e (-2 f i+4 g h+g i x)+b n (2 d g i-e (-4 f i+8 g h+g i x)))+4 a e (g h-f i)^2 \log \left (\frac{e (f+g x)}{e f-d g}\right )+2 b \log \left (c (d+e x)^n\right ) \left (g i (d (4 g h-2 f i)+e x (-2 f i+4 g h+g i x))+2 e (g h-f i)^2 \log \left (\frac{e (f+g x)}{e f-d g}\right )\right )\right )-2 b d^2 g^2 i^2 n \log (d+e x)}{4 e^2 g^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.536, size = 1605, normalized size = 6.7 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} 2 \, a h i{\left (\frac{x}{g} - \frac{f \log \left (g x + f\right )}{g^{2}}\right )} + \frac{1}{2} \, a i^{2}{\left (\frac{2 \, f^{2} \log \left (g x + f\right )}{g^{3}} + \frac{g x^{2} - 2 \, f x}{g^{2}}\right )} + \frac{a h^{2} \log \left (g x + f\right )}{g} + \int \frac{b i^{2} x^{2} \log \left (c\right ) + 2 \, b h i x \log \left (c\right ) + b h^{2} \log \left (c\right ) +{\left (b i^{2} x^{2} + 2 \, b h i x + b h^{2}\right )} \log \left ({\left (e x + d\right )}^{n}\right )}{g x + f}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{a i^{2} x^{2} + 2 \, a h i x + a h^{2} +{\left (b i^{2} x^{2} + 2 \, b h i x + b h^{2}\right )} \log \left ({\left (e x + d\right )}^{n} c\right )}{g x + f}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \log{\left (c \left (d + e x\right )^{n} \right )}\right ) \left (h + i x\right )^{2}}{f + g x}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (i x + h\right )}^{2}{\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}}{g x + f}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]